$('#SaveRule').on('click',function () {
    var ruleStr = "";
    $("input[type='checkbox'][name='ruleDic']:checked").each(function (){
        //  选中复选框中的值
        ruleStr += $(this).val()+",";
    });
    ruleStr= ruleStr.substring(0,ruleStr.length - 1)
    var resume = $('#RuleResume').val();
    if ((ruleStr.length==0)&&(resume.length==0)) {
        $.messager.alert("错误提示", "请选择排除原因或者填写备注!", 'error');
    } else {
    //提交信息
    var ajax = new $ax("/sdc/case/changeMrStatus", function (data) {
        $.messager.popover({msg: '操作成功！',type:'success',timeout: 1000})
        parent.postMessage("save","*");
    }, function (data) {
        $.messager.alert("错误提示", "状态更新错误!", 'info');
    });
    ajax.set('mrListId', $("#mrListId").val());
    ajax.set('status', "O");
    ajax.set('execUser', $("#execUser").val())
    ajax.set('reason', ruleStr);
    ajax.set('resume', resume);
    ajax.start();
    parent.layer.close(parent.layer.getFrameIndex(window.name)); //先得到当前iframe层的索引,再执行关闭
}
});